package study.javabasic.Thread;

public class SynBlockAndMethod {

    public void SyncsTask(){
        synchronized (this){
            System.out.println("hello");
        }
    }


    public synchronized void SyncTask(){
        System.out.println("hello");

    }
}
